import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// import Vant from 'vant' // +
// import 'vant/lib/index.css' //+
import { relativeTime } from "@/utils/date-time.js";
import "amfe-flexible/index.js";
import { vantComponents } from "@/utils/vant.js";
vantComponents.map(item => {
  Vue.use(item);
});
// Vue.use(Vant)
Vue.config.productionTip = false;
// 定义一个全局的过滤器 时间相对筛选函数

Vue.filter("relativeTime", relativeTime);
Vue.prototype.$bus = new Vue();
import { addDifArray } from "@/utils/tool.js";
Vue.prototype.$addDifArray = addDifArray;

// Vue.use(Vant);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
